<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>米行域名批量交易平台-我要借款</title>
<include file="./Public/public/public.html" />
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/cred.css">

</head>
<body>
	<include file="./Public/public/top.html" />
	<div class="layout-wrap register">
		<div class="tab-group mobile-only">
			<div class="clr"></div>
		</div>
		<div class="layout" style="background-color: #eee">
		   <div class="w1190">
        <div class="main-title">
            <a href="/">首页</a>&nbsp;&nbsp;<span class="simsun">&gt;</span>&nbsp;&nbsp;
            <a title="我要投资" href="/xiangmu/">我要借款</a>&nbsp;&nbsp;<span class="simsun">&gt;</span>&nbsp;&nbsp;投资列表
        </div>
        <!--分类条件 strat-->
        <div class="category bg" style="height:auto;">
            <ul class="right category-guide">
                <h3 class="f18">新手引导</h3>
                <li><a href="/help/4.html#1" target="_blank">投标后是否可以取消？</a></li>
                <li><a href="/help/7.html#2" target="_blank">在米行上投资需要交哪些费用？</a></li>
                <li><a href="/help/4.html#3" target="_blank">借款的利息收益是多少？</a></li>
                <li><a href="/help/4.html#4_2" target="_blank">投标金额有限制吗</a></li>
            </ul>
            
            <ul class="category-term left category-pa" id="ulSelectType">
                <li><span>年化利率：</span>
                <a <if condition="$rate eq ''">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('rate','');">全部 </a>
                    <a <if condition="$rate eq 1">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('rate','1');">9%及以下 </a>
                    <a <if condition="$rate eq 2">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('rate','2');">9%-10.2% </a>
                    <a <if condition="$rate eq 3">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('rate','3');">10.2%-11.4% </a>
                    <a <if condition="$rate eq 4">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('rate','4');">11.4%以上</a>
                </li>
                
                
                <li><span>域名类型：</span>
                <select id="domtypeslecid" style="width:160px;" onchange="loadSearch('domtypeslec','');">
               			<option value=''>--请选择域名类型--</option>
               			<volist name="domTypes" id="vo">
               			<if condition="$domtypeid eq $vo['id']">
               			  <option value='{$vo.id}' selected>-{$vo.name}-</option>
               			<else/>
               			<option value='{$vo.id}'>-{$vo.name}-</option>
               			</if>
               			</volist>
               		</select>
                </li>
                
                <li><span>投资期限：</span>
                	<a <if condition="$term eq 0">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('term','0');">全部</a>
                    <a <if condition="$term eq 1">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('term','1');">1个月</a>
                    <a <if condition="$term eq 2">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('term','2');">2个月</a>
                    <a <if condition="$term eq 3">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('term','3');">2个月以上</a>
                </li>
                <li><span>投资金额：</span>
                <a <if condition="$money eq ''">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('money','');">全部 </a>
                    <a <if condition="$money eq 1">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('money','1');">5万以下</a>
                    <a <if condition="$money eq 2">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('money','2');">5万-10万</a>
                    <a <if condition="$money eq 3">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('money','3');">10万-15万</a>
                    <a <if condition="$money eq 4">class="chose"</if> href="#none" class='seardivlcas' onclick="loadSearch('money','4');">15万以上</a>
                </li>
            </ul>
            <div class="clear"></div>
        </div>
        <!--分类条件 end-->

        <div class="loan-list detail-loan-list mt34">
            <h3>
                <div class="left detail-loan-title">
                	<span class="f24"><a href="" target="_blank" style="font-size: 24px;">投资列表</a></span>
                    </div>
                <div class="cash">
                    <span class="bordernone">可投资总金额<br>
                           <a class="deloading"><strong class="f18 ">{$allInvemoney}</strong>元</a></span>
                    <span>累计成交总笔数<br>
                           <a class="deloading"><strong class="f18 ">{$allInvecount}</strong>笔</a></span>
                    <span>为用户累投资<br>
                        <a class="deloading"><strong class="f18 ">{$allRate}</strong>元</a></span>
                </div>
            </h3>
            <div class="loan-list-cont ind-investbox" id="xsb">
                <h4 style="display: block;">
                    <span class="w7">&nbsp;&nbsp;</span> <span class="w15">域名类型 </span>
                    <span class="w10" id="Sort_Rate" onclick="SortLoan(this)"><a class="blue" title="按年利率排序">年利率 </a>
                        <i class="iconfont f18 desc" style="display:none" id="Sort1"></i>
                        <i class="iconfont f18 asc" style="display:none" id="Sort2"></i>
                    </span>
                    <span class="w10">授信额度</span>
                    <span class="w13" id="Sort_Amount" onclick="SortLoan(this)"><a class="blue" title="按金额排序">金额 </a>
                        <i class="iconfont f18 desc" style="display:none" id="Sort1"></i>
                        <i class="iconfont f18 asc" style="display:none" id="Sort2"></i>
                    </span>
                    <span class="w11" id="Sort_Term" onclick="SortLoan(this)"><a class="blue" title="按期限排序">期限 </a>
                        <i class="iconfont f18 desc" style="display:none" id="Sort1"></i>
                        <i class="iconfont f18 asc" style="display:none" id="Sort2"></i>
                    </span>
                    <span class="w16">还款方式</span>
                    <span class="w11" id="Sort_Sch" onclick="SortLoan(this)"><a class="blue" title="按进度排序">已投资金额</a>
                        <i class="iconfont f18 desc" style="display:none" id="Sort1"></i>
                        <i class="iconfont f18 asc" style="display:none" id="Sort2"></i>
                    </span> 
                    <span class="w7">&nbsp;&nbsp;</span> 
                </h4>
                <ul id="LoanLists">
                <volist name="investlist" id="vo">
                <if condition="$i%2 eq 0"><li class="two"></if>
	            <if condition="$i%2 neq 0"><li class="one"></if>
	                  	<div class="w7 mt20"><span class="icon-diactive ml11"></span></div>
	                	<div class="w15 mt12"><a href="{:U('Credit/inverdetail',array('id'=>$vo['id'],'cateid'=>$vo['domtypeid']))}">
	                		<span class="f18">投资{$vo.domtypname}</span></a><br>
	                		<span class="gray">发标时间:{$vo.create_time}</span>
	                	</div>
	                	<div class="w10 mt20"><span class="f18 red">{$vo.rate}%</span></div>
	                	<div class="w10 mt20"><span class="f18 red">{$vo.credit}元</span></div>
	                	<div class="w13 mt20">
	                		<span class="f18">{$vo.money}</span><span class="gary">元</span>
	                	</div>
	                		<div class="w11 mt20">
	                			<if condition="$vo['term_begin']-30 lt 0">
	                				<span class="f18">{$vo.term_begin}</span> <span class="gary">天</span>
	                			<else/>
	                				<span class="f18">{$vo['term_begin']/30}</span> <span class="gary">个月</span>
	                			</if>
	                			-至-
	                			<if condition="$vo['term_end']-30 lt 0">
	                				<span class="f18">{$vo.term_end}</span> <span class="gary">天</span>
	                			<else/>
	                				<span class="f18">{$vo['term_end']/30}</span> <span class="gary">个月</span>
	                			</if>
	                		</div> 
	                	<div class="w16 mt20">按月付息，到期还本</div>
	                	<!-- <div class="w11 col_5 mt28">
	                		<font>{$vo['tovalue']/$vo['money']*100|round=###,2}%</font>
	                	</div>  -->
	                	<div class="w11 mt20">
	                		{$vo.tovalue}元</font>
	                	</div>
	                	<div class="w7 mtb14">
	                			<if condition="$vo['money'] eq 0">
	                			<a href="{:U('Credit/inverdetail',array('id'=>$vo['id'],'cateid'=>$vo['domtypeid']))}"><span class="bnt-hui-normal">已借完</span></a>
	                			<else/>
	                			<a href="{:U('Credit/inverdetail',array('id'=>$vo['id'],'cateid'=>$vo['domtypeid']))}"><span class="bnt-normal">立即借款</span></a>
	                			</if>
	                	</div>
	                	</li>
                </volist>
                	</div>
                </ul>
            </div>
            <!--pager strat-->
            <div class="pager w-pager">
                <ul></ul>
            </div>
            <!--pager end-->
        </div>
    </div>
		</div>
	</div>
	<include file="./Public/public/footer.html" />
	<form action="{:U('credit/investorinfo')}" method='post' id="searchformid">
		<input type='hidden' name="rate" id="idrate" value='{$rate}'/>
		<input type='hidden' name="domtypeid" id="domtypeid" value='{$domtypeid}'/>
		<input type='hidden' name="term" id="idterm" value='{$term}'/>
		<input type='hidden' name="money" id="idmoney" value='{$money}'/>
	</form>
</body>
<script type="text/javascript" src="{$app_path}{$static_path}/js/cycle.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/raphael.js"></script>

<script type="text/javascript">
function loadSearch(id,val){
	if(id=='domtypeslec'){
		$("#domtypeid").val($("#domtypeslecid").val());
	}else{
		$("#id"+id).val(val);
	}
	$("#searchformid").submit();
}
function daystr(timer){
	if(timer==0){
		return '';
	}
var str="";
var yuday=0;
var h=0;
var m=0;
var yuh=0;
var day = parseInt(timer/(24*3600000));
if(day==0){
	h=parseInt(timer/(3600000));
	yuh=timer%(3600000);
}else {
	yuday=timer%(24*3600000);
	h=parseInt(yuday/(3600000));
	yuh=yuday%(3600000);
}
str=day+'天'+h+'小时';
if(h==0){
	m=parseInt(timer/(60000));
	yum=timer%(60000);
}else{
	m=parseInt(yuh/(60000));
	yum=yuh%(60000);
}
str+=m+'分';
if(m==0){
	s=parseInt(timer/1000);
}else {
	s=parseInt(yum/(1000));
}
str+=s+'秒';
return str;
}
</script>
</html>